package com.tuo51.evaluate.domain.appusers;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.tuo51.core.domain.staffs.Staff;
import com.tuo51.foudation.model.Model;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

@Data
@Entity
@Table(name = "staff_vip")
@Deprecated
@JsonIgnoreProperties(value = { "hibernateLazyInitializer"})
public class StaffVip  extends Model {

	@JsonIgnore
	@Column(name = "staff_id", unique = true)
	private String staffId;

	@JsonIgnore
	@OneToOne
	@JoinColumn(name = "staff_id", insertable = false, updatable = false, unique = true)
	Staff staff;

	@Deprecated
	@Column(name = "expire_time")
	private Date expireTime;

	//剩余次数
	@Deprecated
    @Column(name = "rest_count")
    private Integer restCount;

	@Deprecated
	@Column(name = "vip_level")
    private Integer vipLevel;

	@Deprecated
    @Column(name = "vip_desc")
    private String vipDesc;
}
